<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:wsosft="http://www.springframework.org/security/facelets/tags"
      xmlns:p="http://primefaces.org/ui">

    <ui:component>
        
        <h:form>
            <p:growl id="messages"/>



            <p:menubar autoDisplay="false">
                <wsosft:ifAnyGranted roles="ROLE_ADMIN">
                    
               
                    <p:submenu label="Admin" icon="img-admin" >
                    
                        <p:submenu label="Cadastros">
                            
                       
                            <p:submenu label="Professor" >
                                <p:menuitem value="Novo" action="#{professorFaces.startaddProfessor()}" ajax="false"   />
                                <p:menuitem value="Editar" action="#{professorFaces.startListaProfessor()}" ajax="false"   />
                             </p:submenu>
                            <p:submenu label="Escola" >
                                <p:menuitem value="Nova" action="#{escolaFaces.startEscola()}" ajax="false"   />
                             </p:submenu>
                             <p:submenu label="LEI" >
                                 <p:menuitem value="Novo" action="#{leiFaces.startLei()}" ajax="false" icon="img-monitor"  />
                             </p:submenu>
                             <p:submenu label="Relat. Mensal" >
                                 <p:menuitem value="Editar Relatório" action="#{relatMensalFaces.startRelatAllEscolas()}" ajax="false" icon="img-monitor"  />
                             </p:submenu>
                           
                   
                    </p:submenu>

                    

                </p:submenu>
                     </wsosft:ifAnyGranted>
                <p:submenu  label="Escola" icon="img-escola">
                    <p:submenu label="Relatórios" icon="img-new-file">
                        <p:menuitem value="Lei - Mensal" action="#{relatMensalFaces.startRelatMensal()}" ajax="false"  icon="img-report-new"  />
                        <p:menuitem value="  Relatório Mensal" action="#{relatMensalFaces.startAddRelatorio()}" ajax="false"  icon="img-reportEdit"  />
                        <p:menuitem value="Plano de Ação" action="#{relatMensalFaces.startRelatPlano()}" ajax="false"  icon="img-reportEdit"  />
                    </p:submenu>
                    
                </p:submenu>
                   

             
         
                
                
                <p:menuitem value="Sair"  icon="img-exit"  url="/j_spring_security_logout" action="http://187.76.147.150:8081/siac/" ajax="false"/>
              
               
            </p:menubar>


        </h:form>
    </ui:component>
</html>